package com.abel.roommanager.service.imp;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.abel.roommanager.mapper.UserMapper;
import com.abel.roommanager.pojo.User;
import com.abel.roommanager.service.UserService;

import lombok.Data;
@Service
@Data
public class UserServiceImp implements UserService{
	@Autowired
   private UserMapper userMapper;
	@Override
	public User findUserByUserName(String username) {
		return userMapper.findUserByUserName(username);
	}
	@Override
	public User findUserRolesByUsername(String username) {
		return userMapper.findUserRolesByUsername(username);
	}
	

}
